$(document).ready(function() {
	var pathname = window.location.pathname;
	if (pathname.indexOf("register") != -1)
	{
		$("#navigation #register").addClass("active");
	}

	else if (pathname.indexOf("login") != -1){
		$("#navigation #login").addClass("active");
	}
	else
	{
		$("#navigation #home").addClass("active");
	}
	$("a#login").fancybox();
});
